package com.company;

/**
 * @author jrue
 * @version 1.0
 * @date 2020/3/25 14:00
 */
public class Test02 {

    public static void main(String[] args) {
        Singleton instance = Singleton.INSTANCE;
        instance.say();
    }
}

class InnerClass {

    private static class ThisInnerClass{
        private static final InnerClass instance = new InnerClass();
    }

    public InnerClass getInstance(){
        return ThisInnerClass.instance;
    }
}

enum Singleton{
    INSTANCE;

    private int hello;
    public void say(){

    }
}